package com.ruoyi.rule.mapper;

import java.util.List;
import com.ruoyi.rule.domain.RuleCondition;

/**
 * 规则条件Mapper接口
 *
 * @author changkang
 * @date 2025-05-12
 */
public interface RuleConditionMapper {
    /**
     * 查询规则条件
     *
     * @param id 规则条件主键
     * @return 规则条件
     */
    public RuleCondition selectRuleConditionById(Long id);

    /**
     * 查询规则条件列表
     *
     * @param ruleCondition 规则条件
     * @return 规则条件集合
     */
    public List<RuleCondition> selectRuleConditionList(RuleCondition ruleCondition);

    /**
     * 新增规则条件
     *
     * @param ruleCondition 规则条件
     * @return 结果
     */
    public int insertRuleCondition(RuleCondition ruleCondition);

    /**
     * 修改规则条件
     *
     * @param ruleCondition 规则条件
     * @return 结果
     */
    public int updateRuleCondition(RuleCondition ruleCondition);

    /**
     * 删除规则条件
     *
     * @param id 规则条件主键
     * @return 结果
     */
    public int deleteRuleConditionById(Long id);

    /**
     * 批量删除规则条件
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRuleConditionByIds(Long[] ids);
}
